package com.sk.sourcecircle.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2018/1/3.
 */

public class OrderDetailsBean {


    /**
     * code : 200
     * data : {"order_id":107,"user_id":15,"activity_id":14,"activity_data_id":20,"type":1,"activity_name":"暗室逢灯发的啥","unit_price":"0.01","count":1,"order_price":"0.01","img_url":"https://appdev.qigle.com/yuanquan/upload/20171121/151124876380599.jpg","name":"xiaohuij","phone":"13716043870","remarks":"","order_status":0,"pay_status":0,"pay_type":0,"pay_time":0,"create_time":"2018-01-03 11:59:12","update_time":"2018-01-03 11:59:12","status_name":"订单流程未开始","start_time":"2017-11-17 20:17","end_time":"2017-11-17 20:17","apply_end_time":1510921020,"province":"北京","city":"北京市","district":"东城区","address":"啥地方地方撒俺的沙发"}
     */

    private int code;
    private DataBean data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Parcelable {
        /**
         * order_id : 107
         * user_id : 15
         * activity_id : 14
         * activity_data_id : 20
         * type : 1
         * activity_name : 暗室逢灯发的啥
         * unit_price : 0.01
         * count : 1
         * order_price : 0.01
         * img_url : https://appdev.qigle.com/yuanquan/upload/20171121/151124876380599.jpg
         * name : xiaohuij
         * phone : 13716043870
         * remarks :
         * order_status : 0
         * pay_status : 0
         * pay_type : 0
         * pay_time : 0
         * create_time : 2018-01-03 11:59:12
         * update_time : 2018-01-03 11:59:12
         * status_name : 订单流程未开始
         * start_time : 2017-11-17 20:17
         * end_time : 2017-11-17 20:17
         * apply_end_time : 1510921020
         * province : 北京
         * city : 北京市
         * district : 东城区
         * address : 啥地方地方撒俺的沙发
         */

        private int order_id;
        private int user_id;
        private int activity_id;
        private int activity_data_id;
        private int type;
        private String activity_name;
        private String unit_price;
        private int count;
        private String order_price;
        private String img_url;
        private String name;
        private String phone;
        private String remarks;
        private int order_status;
        private int pay_status;
        private int pay_type;
        private int pay_time;
        private String create_time;
        private String update_time;
        private String status_name;
        private String start_time;
        private String end_time;
        private int apply_end_time;
        private String province;
        private String city;
        private String district;
        private String address;

        public int getOrder_id() {
            return order_id;
        }

        public void setOrder_id(int order_id) {
            this.order_id = order_id;
        }

        public int getUser_id() {
            return user_id;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public int getActivity_id() {
            return activity_id;
        }

        public void setActivity_id(int activity_id) {
            this.activity_id = activity_id;
        }

        public int getActivity_data_id() {
            return activity_data_id;
        }

        public void setActivity_data_id(int activity_data_id) {
            this.activity_data_id = activity_data_id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getActivity_name() {
            return activity_name;
        }

        public void setActivity_name(String activity_name) {
            this.activity_name = activity_name;
        }

        public String getUnit_price() {
            return unit_price;
        }

        public void setUnit_price(String unit_price) {
            this.unit_price = unit_price;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public String getOrder_price() {
            return order_price;
        }

        public void setOrder_price(String order_price) {
            this.order_price = order_price;
        }

        public String getImg_url() {
            return img_url;
        }

        public void setImg_url(String img_url) {
            this.img_url = img_url;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getRemarks() {
            return remarks;
        }

        public void setRemarks(String remarks) {
            this.remarks = remarks;
        }

        public int getOrder_status() {
            return order_status;
        }

        public void setOrder_status(int order_status) {
            this.order_status = order_status;
        }

        public int getPay_status() {
            return pay_status;
        }

        public void setPay_status(int pay_status) {
            this.pay_status = pay_status;
        }

        public int getPay_type() {
            return pay_type;
        }

        public void setPay_type(int pay_type) {
            this.pay_type = pay_type;
        }

        public int getPay_time() {
            return pay_time;
        }

        public void setPay_time(int pay_time) {
            this.pay_time = pay_time;
        }

        public String getCreate_time() {
            return create_time;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public String getUpdate_time() {
            return update_time;
        }

        public void setUpdate_time(String update_time) {
            this.update_time = update_time;
        }

        public String getStatus_name() {
            return status_name;
        }

        public void setStatus_name(String status_name) {
            this.status_name = status_name;
        }

        public String getStart_time() {
            return start_time;
        }

        public void setStart_time(String start_time) {
            this.start_time = start_time;
        }

        public String getEnd_time() {
            return end_time;
        }

        public void setEnd_time(String end_time) {
            this.end_time = end_time;
        }

        public int getApply_end_time() {
            return apply_end_time;
        }

        public void setApply_end_time(int apply_end_time) {
            this.apply_end_time = apply_end_time;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getDistrict() {
            return district;
        }

        public void setDistrict(String district) {
            this.district = district;
        }

        public String getAddress() {
            return address;
        }

        public void setAddress(String address) {
            this.address = address;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.order_id);
            dest.writeInt(this.user_id);
            dest.writeInt(this.activity_id);
            dest.writeInt(this.activity_data_id);
            dest.writeInt(this.type);
            dest.writeString(this.activity_name);
            dest.writeString(this.unit_price);
            dest.writeInt(this.count);
            dest.writeString(this.order_price);
            dest.writeString(this.img_url);
            dest.writeString(this.name);
            dest.writeString(this.phone);
            dest.writeString(this.remarks);
            dest.writeInt(this.order_status);
            dest.writeInt(this.pay_status);
            dest.writeInt(this.pay_type);
            dest.writeInt(this.pay_time);
            dest.writeString(this.create_time);
            dest.writeString(this.update_time);
            dest.writeString(this.status_name);
            dest.writeString(this.start_time);
            dest.writeString(this.end_time);
            dest.writeInt(this.apply_end_time);
            dest.writeString(this.province);
            dest.writeString(this.city);
            dest.writeString(this.district);
            dest.writeString(this.address);
        }

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            this.order_id = in.readInt();
            this.user_id = in.readInt();
            this.activity_id = in.readInt();
            this.activity_data_id = in.readInt();
            this.type = in.readInt();
            this.activity_name = in.readString();
            this.unit_price = in.readString();
            this.count = in.readInt();
            this.order_price = in.readString();
            this.img_url = in.readString();
            this.name = in.readString();
            this.phone = in.readString();
            this.remarks = in.readString();
            this.order_status = in.readInt();
            this.pay_status = in.readInt();
            this.pay_type = in.readInt();
            this.pay_time = in.readInt();
            this.create_time = in.readString();
            this.update_time = in.readString();
            this.status_name = in.readString();
            this.start_time = in.readString();
            this.end_time = in.readString();
            this.apply_end_time = in.readInt();
            this.province = in.readString();
            this.city = in.readString();
            this.district = in.readString();
            this.address = in.readString();
        }

        public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }
}
